import { OnInit, OnChanges, Directive, ElementRef, Renderer, SimpleChanges} from "@angular/core";

@Directive({
  selector: "[changeDetect]"
})
export class ChangeDetectDirective implements OnInit {
  
  constructor(private elem: ElementRef) {
    
  }

  ngOnInit() {
    console.debug("change init", this.elem);
  }

  ngOnChanges(changes: SimpleChanges) {
    console.debug("Changes: ", changes);
  }
}